package cn.flying.cloud.system.common.enums;


import cn.flying.cloud.base.common.enums.BaseEnumInfo;

/**
 * @description: 资源类型枚举
 * @author: llyong
 * @date: 2019/12/16
 * @time: 22:21
 * @version: 1.0
 */
public enum ResTypeEnum implements BaseEnumInfo {

    /**
     * 按钮
     */
    RES_TYPE_BUTTON("B", "按钮"),

    /**
     * 菜单
     */
    RES_TYPE_MENU("M", "菜单"),

    /**
     * 模块
     */
    RES_TYPE_SYS("S", "模块"),
    ;

    private String code;
    private String text;

    ResTypeEnum(String code, String text) {
        this.code = code;
        this.text = text;
    }

    /**
     * 获取枚举码值
     *
     * @return
     */
    @Override
    public String getCode() {
        return code;
    }

    /**
     * 获取枚举描述
     *
     * @return
     */
    @Override
    public String getDesc() {
        return text;
    }
}
